package com.tengfei.main.plan.domain.bo;

import com.tengfei.common.core.domain.BaseEntity;
import com.tengfei.common.core.validate.AddGroup;
import com.tengfei.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 计划课程业务对象 sp_plan_course
 *
 * @author tengfei
 * @date 2022-08-01
 */

@Data
@ApiModel("计划课程业务对象")
public class PlanCoursesBo {

    /**
     * id
     */
    @ApiModelProperty(value = "id", required = true)
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 计划id
     */
    @ApiModelProperty(value = "计划id", required = true)
    @NotNull(message = "计划id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long planId;

    /**
     * 课程id
     */
    @ApiModelProperty(value = "课程id", required = true)
    @NotNull(message = "课程id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long courseId;


}
